package com.ywdnf.gomoku.model.message;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 前端消息model
 *
 * @author lss
 * @date 2019-06-27, Thu
 */
@Getter
@Setter
// @Builder
@AllArgsConstructor
public class FrontMsgBean {

  public static final String TYPE_SUCCESS = "success";
  public static final String TYPE_WARNING = "warning";
  public static final String TYPE_INFO = "info";
  public static final String TYPE_ERROR = "error";

  /**
   * 消息类型，颜色
   */
  private String type;

  /**
   * 消息内容
   */
  private String content;

  /**
   * 显示时长
   */
  private float duration;

  /**
   * 是否自动关闭
   */
  private boolean autoClose;

  /**
   * 是否显示关闭按钮
   */
  private boolean showClose;



}
